home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
asyam.zip
/
FIFO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-06-24
|
432b
|
22 lines
#include <dos.h>
#include "async.h"
extern int fifo_enabled;
extern int UART_ports[];
extern struct async_portS async_port[4];
// NEEDS WORK
int init_fifo(int comport, int enable)
{
if ((!async_port[comport].port_open) || (async_port[comport].uart_type != UART_16550A)) {
return (0);
}
fifo_enabled = enable;
outportb(UART_ports[comport]+2, (enable?1:0));
return (1);
}